package com.my.xadmin.security.service;


import com.my.framework.exception.ServiceException;
import com.my.framework.page.Page;
import com.my.xadmin.security.entity.Module;

import java.util.List;

public interface ModuleService {
	void save(Module module) throws ServiceException;
	
	Module get(Long id);
	
	void update(Module module);
	
	void delete(Long id) throws ServiceException;
	
	Module getTree();
	
	List<Module> findAll();
	
	List<Module> find(Long parentId, Page page);
	
	List<Module> find(Long parentId, String name, Page page);
}
